package com.ruoyi.culture.mapper;

import com.ruoyi.culture.domain.CreativePublish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface CreativePublishMapper {
    int addOne(CreativePublish creativePublish);

    List<CreativePublish> list(@Param("title") String title,
                               @Param("categoryId") int categoryId,
                               @Param("labelId")int labelId,
                               @Param("beginningDate") Date beginningDate,
                               @Param("endingDate") Date endingDate);

    int update(CreativePublish creativePublish);

    int delete(@Param("id") int id);
}
